package org.lyq.erp.utils.string;

import java.io.UnsupportedEncodingException;

public class StringEncode {

	public static String changeEncodeUTF8(String str) {

		try {
			return str != null ? new String(str.getBytes("iso-8859-1"), "UTF-8") : null;
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}

}
